package com.blb.zycommunity.mapper;

import com.blb.zycommunity.entity.SysUserPost;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户与岗位关联表 Mapper 接口
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
    @Delete("delete from sys_user_post where user_id = #{userId}")
    boolean deletePostByUserId(@Param("userId") Long userId);
}
